﻿using PublicCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T_Rbac_Demain
{
    [Table("Operator")]
    public class Operator:Audit
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [Key]
        public int Oid { get; set; }
        /// <summary>
        /// 用户编号
        /// </summary>
        [Required]
        [StringLength(30)]
        public string? Onumber { get; set; }
        /// <summary>
        /// 所属公司    
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? Pbusiness { get; set; }
        [StringLength(20)]
        /// <summary>
        /// 用户名称
        /// </summary>
        public string? Oname { get; set; }
        /// <summary>
        /// 分配角色
        /// </summary>
        public int Orid { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(20)]
        public string? Orname { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(20)]
        public string? Opwd { get; set; }
        /// <summary>
        /// 手机电话
        /// </summary>
        [StringLength(20)]
        public string? Ophone { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool Ostate { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        [StringLength(20)]
        public string? Odname { get; set; }
    }
}
